package cn.ava.org.service;

import cn.ava.basic.utils.PageList;
import cn.ava.org.domain.Department;
import cn.ava.org.domain.Employee;
import cn.ava.org.domain.Employee;
import cn.ava.org.query.EmployeeQuery;

import java.util.List;
/**
 * @ClassName: IEmployeeService
 * @Description: 员工服务层接口
 * @Author: Avavaava
 * @Date: 2022/7/1 9:24
 * @version: 23.53
 *
 */
public interface IEmployeeService {

    // 查询所有
    List<Employee> loadAll();

    // 根据Id查询
    Employee getById(Long id);

    // 根据Id删除
    void delete(Long id);

    // 新增
    void add(Employee employee);

    // 根据Id修改
    void update(Employee employee);

    // 分页+高级查询
    PageList<Employee> queryData(EmployeeQuery employeeQuery);

    // 批量删除
    void batchDelete(Long[] id);

    // 根据用户名查询
    Employee getByUsername(String username);

    // 根据logininfoId查找
    Employee getByLogininfoId(Long id);
    // 根据店铺id查询
    List<Employee> getByShopId(Long id);
}
